package com.hqd.ch03.v10.config;

import com.hqd.ch03.v10.factory.ObjectFactory;

/**
 * bean对象作用域
 */
public interface Scope {
    /**
     * 获取对象
     *
     * @param name
     * @param factory
     * @return
     */
    Object get(String name, ObjectFactory<?> factory);

    /**
     * 删除对象
     *
     * @param name
     * @return
     */
    Object remove(String name);
}
